package cn.iocoder.yudao.module.wine.controller.app.businesscredit;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.wine.controller.app.businesscredit.vo.AppBusinessCreditRespVO;
import cn.iocoder.yudao.module.wine.service.businesscredit.BusinessCreditService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

/**
 * @author zyc
 * @createDate 2024/6/5 17:50
 */
@Tag(name = "用户 APP - 保证金")
@RestController
@RequestMapping("/wine/business-credit")
@Validated
public class AppBusinessCreditController {

    @Resource
    private BusinessCreditService businessCreditService;

    @GetMapping("/list")
    @Operation(summary = "获得保证金列表")
    public CommonResult<List<AppBusinessCreditRespVO>> getBusinessCreditList(){
        List<AppBusinessCreditRespVO> list = businessCreditService.appGetBusinessCreditList();
        return success(list);
    }

}
